<?php

class Model_Quote extends Zend_Db_Table_Abstract {

    protected $_name = 'quote';

    public function createQuote($dataArray) {
	// create a new row in the quote table
	$row = $this->createRow();
	// set the row data

	$row->name = $dataArray['name'];
	$row->company = $dataArray['company'];
	$row->email = $dataArray['email'];
	$row->country = $dataArray['country'];
	$row->phone = $dataArray['phone'];
	$row->suitabletime = $dataArray['suitabletime'];
	$row->services = $dataArray['services'];
	$row->reqdetails = $dataArray['reqdetails'];
	$row->filename = $dataArray['filename'];
	$row->ip = $_SERVER["REMOTE_ADDR"];
	$row->createddate = date('Y-m-d h:i:s');
	$row->active = "1";

	// save the new row
	return $row->save();
    }

}

?>